<%@include file="/WEB-INF/jsp/common/taglibs.jsp"%>

<s:layout-render name="/WEB-INF/jsp/common/layout_main.jsp"
                 title="Login Simulation">
    <s:layout-component name="body">
        <s:messages/>
        <span style="font-size:24px;">&nbsp;Login Simulation</span>
        <br/><br/>
        <div id="divleft"> 
        <div id="divwelcome" style="border: 0px;">
            <span>&nbsp;&nbsp;Current User Information</span> <br/><br/>
            <d:table name="${actionBean.context.currentUser}" id="user1" style="width: 300px;">
                <d:column>
                    <img align="left" border="0" src="${actionBean.context.currentUser.photo}" width="90px" height="100px" style="margin-left:10px; margin-right:10px;">
                    <span>${actionBean.context.currentUser.userName}</span><br/><br/><br/><br/>
                    <a style="color: #3960A0" href="WelcomeScreen.action">Click to go to the <br/>Groups Welcome Screen </a>
                </d:column>  
            </d:table>
        </div>
        </div>
        <div id="divright">
        <!-- Member List-->
        <div class="divborder1" style="width:420px;" align="center">
            <div class="boxTitle1"><div class="boxTitle2">User List</div></div>
            <div class="boxMiddle"><div style="margin-top:8px; margin-left:10px;">List of all the users in the system</div></div>

            <div  id="wrapgroup" style="height: 338px;">
                <c:forEach var="user" items="${actionBean.users}" >
                    <div class="boxtag" onmouseout="style.backgroundColor='white'" onmouseover="style.backgroundColor='#84C1DF'">
                        <div>
                            <img class="boxtagImg"   alt="" align="left" border="0" src="${user.photo}" width="40px" height="44px">
                        </div>
                        <div class="boxtagTitle" align="left"> 
                            <s:link  class="btnSearch" beanclass="spatialmarketplace.cem.action.LoginSimulationActionBean" event="updateUser" style="font-family:Tahoma; text-decoration:none; color:#3960A0; font-size: 10pt; font-weight: normal;">
                                ${user.userName}
                                <s:param name="newUserId" value="${user.userId}"/>
                            </s:link> 
                        </div>

                    </div>
                </c:forEach>
            </div><!-- End wrap  -->

            <div class="boxfooter" style="height:10px;">
            </div>
        </div>
        <!-- End Member List-->
        <br/><br/>
        
        </div>


    </s:layout-component>
</s:layout-render>

